package com.example.doer.reading;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 杨轩昂 on 2017/7/11.
 */

public class Book {
    public int getBookNo() {
        return BookNo;
    }

    private int BookNo;
    private String BookName;
    private String Writer;
    private String Description;//图书简介
    private String DateInfo;//出版日期
    private int price;
    private int CoverResID;//封面编号
    private List<Chapter> chapterlist = new ArrayList<Chapter>();

    public Book(int n,String name,String writer,String date,int p,List l){//构造函数初始化时初始必要信息
        this.BookNo=n;
        this.BookName=name;
        this.Writer=writer;
        this.DateInfo=date;
        this.price=p;
        this.chapterlist = l;
    }

    public void setDescription(String Description){
        this.Description = Description;
    }
    public void setCoverResID(int CoverResID){
        this.CoverResID = CoverResID;
    }


}
